//引入组件
import index from '@/components/product/index.vue'
import info from '@/components/product/info.vue'


//子路由列表
const children = [
    {
        //产品列表
        path:'index',
        name:'ProductIndex',
        component:index
    },
    {
        //产品详细
        path:'info',
        name:'ProductInfo',
        component:info
    }
]


//1级路由的组件
const layout = {
    template: `<router-view></router-view>`
}

export default {
    name: 'product',
    path: '/product', //1级路由
    component: layout, //组件
    children: children
}